<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加分离</title>
</head>
<body>

{extend name="extends/usercenter" /}

{block name="left"}
<h2>分类管理</h2>

<li>
    <a href="{:url('index',['group_id'=>input('group_id')])}">
        分组列表
    </a>

</li>
<li>
    <a href="{:url('add')}">
        增加分组
    </a>
</li>

{/block}

{block name="content"}
<div>
{:dump($cateInfo->toarray())}
</div>

<div>
    <form action="" method="post">
        <select name="pid" id="">
            <option value="0">顶级</option>
            {volist name="cate_list" id="vbv"}
                 <option value="{$vbv.id}">
                     {for start="1" end="$vbv->lv"}
                         ---|-
                     {/for}
                     {$vbv.name}
                 </option>
            {/volist}

        </select>
        <br>
        <input type="hidden" name="to_id" value="{$cateInfo->id}">
        <input type="text" name="name" value="{$cateInfo->name}">

        <input type="submit" value="提交">
    </form>
</div>
<script>
    $().ready(function(){
        $('[name="pid"]').val('{$cateInfo->pid}');
    })
</script>

{/block}


</body>
</html>
